QT       += core gui svg

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    GIF/gifview.cpp \
    GIF/gifviewcontroller.cpp \
    GIF/gifwriter.cpp \
    applanguagecontroller.cpp \
    button/buttonsviewwidget.cpp \
    button/templatestylebutton.cpp \
    lineedit/lineeditcontainerwidget.cpp \
    lineedit/passwordlineedit.cpp \
    main.cpp \
    maincontroller.cpp \
    mainwindow.cpp \
    table/tablecontainerwidget.cpp \
    table/tablevieweventfilter.cpp \
    window/tipwindow.cpp \
    window/windowcontainerwidget.cpp

HEADERS += \
    GIF/gif.h \
    GIF/gifview.h \
    GIF/gifviewcontroller.h \
    GIF/gifwriter.h \
    applanguagecontroller.h \
    button/buttonsviewwidget.h \
    button/templatestylebutton.h \
    lineedit/lineeditcontainerwidget.h \
    lineedit/passwordlineedit.h \
    maincontroller.h \
    mainwindow.h \
    singletont.h \
    table/tablecontainerwidget.h \
    table/tablevieweventfilter.h \
    window/tipwindow.h \
    window/windowcontainerwidget.h

FORMS += \
    GIF/gifview.ui \
    button/buttonsviewwidget.ui \
    lineedit/lineeditcontainerwidget.ui \
    lineedit/passwordlineedit.ui \
    mainwindow.ui \
    table/tablecontainerwidget.ui \
    window/tipwindow.ui \
    window/windowcontainerwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

QMAKE_CXXFLAGS_RELEASE += -g
QMAKE_CFLAGS_RELEASE += -g

LIBS += -lUser32 -lDbghelp

RESOURCES += \
    qt-custom-components.qrc

TRANSLATIONS += \
    qt-custom-components_en_US.ts \
    qt-custom-components_zh_CN.ts

DISTFILES += \
    qt-custom-components_en_US.ts \
    qt-custom-components_zh_CN.ts
